@charset 'utf-8';
/*广告*/
a {
  color: #ffffff;
}
.price {
  margin: 0 10px 14px;
  text-align: center;
  font-size: 14px;
  span {
    color: orange;
    text-align: center;
  }
  del {
    color: #b0b0b0;
  }
}

.home-hero {
  height: 460px;
  width: 1226px;
  margin: 0 auto;
  overflow: hidden;
  position: relative;
  .donghua(@DHname) {
    @keyframes @DHname {
      0% {
        margin-left: 0;
      }
      15% {
        margin-left: 0;
      }
      16.7% {
        margin-left: -1226px;
      }
      31% {
        margin-left: -1226px;
      }
      33.3% {
        margin-left: -2452px;
      }
      48% {
        margin-left: -2452px;
      }
      49.9% {
        margin-left: -3678px;
      }
      65% {
        margin-left: -3678px;
      }
      66.6% {
        margin-left: -4904px;
      }
      82% {
        margin-left: -4904px;
      }
      83.3% {
        margin-left: -4904px;
      }
      100% {
        margin-left: 0;
      }
    }
  }
  .donghua(myDongHua);
  .animation(@animation-name,@animation-duration,@animation-timing-function) {
    animation: @arguments;
  }

  .home-list {
    width: 6130px;
    height: 460px;
    .animation(myDongHua,10.5s,infinite);
    .home-swiper {
      float: left;
      width: 1226px;
      overflow: hidden;
    }
    img {
      display: block;
      width: 1226px;
      height: 456px;
    }
    .btn {
      position: absolute;
      top: 50%;
      margin-top: -35px;
      width: 40px;
      height: 70px;
      font-size: 40px;
      color: #cccccc;
      text-align: center;
      line-height: 70px;
      cursor: pointer;
      &:hover {
        background: #414141;
        color: #fff;
      }
    }
    .btn-prev {
      background-position: -83px 0;
      left: 234px;
    }
    .btn-next {
      right: 0;
    }
  }
  .home-ul {
    position: absolute;
    right: 0;
    bottom: 20px;
    text-align: right;
    width: 100%;
    height: 10px;
    padding-right: 50px;
    font-size: 0;
    li {
      float: right;
      display: block;
      width: 6px;
      height: 6px;
      border-radius: 50%;
      margin: 0 5px;
      background: rgba(0, 0, 0, 0.5);
      border: 2px solid rgba(255, 255, 255, 0.3);
      &:hover {
        background: rgba(0, 0, 0, 0.3);
      }
    }
  }
  .menu {
    position: absolute;
    top: 0;
    left: 0;
    width: 234px;
    height: 456px;
    padding: 20px 0;
    color: #fff;
    background: rgba(105, 101, 101, 0.6);
    .menu-list {
      position: relative;
      .menu-children {
        width: 1000px;
        position: absolute;
        top: -20px;
        left: 234px;
        background: #fff;
        border-bottom: 3px solid darkgrey;
        border-top: 1px solid darkgrey;
        display: none;
        .menu-li {
          float: left;
          width: 250px;
          height: 76px;
          text-align: center;
          a {
            color: #000;
          }
        }
      }
      .menu-a:hover + .menu-children {
        display: block;
      }
    }
    a {
      padding-left: 30px;
      height: 42px;
      line-height: 42px;
      display: block;

      span {
        margin-right: 5px;
        font-size: 13px;
      }
      em {
        float: right;
        margin-right: 20px;
        font-size: 16px;
        font-weight: 900;
      }
      &:hover {
        background: orange;
      }
    }
  }
}

/*轮播图二级菜单*/

.adv {
  margin-top: 14px;
  display: flex;
  justify-content: space-between;
  ul {
    height: 170px;
    width: 232px;
    padding: 1px;
    background: #5f5750;
    display: table;
    li {
      text-align: center;
      float: left;
      width: 70px;
      height: 82px;
      padding: 0 3px;
      display: list-item;
      a {
        width: 72px;
        height: 64px;
        display: block;
        padding: 18px 0 0;
        color: #ceccca;
        opacity: 0.8;
        font-size: 12px;
        &:nth-child(1) {
          border-bottom: 1px solid #635b54;
          border-right: 1px solid #635b54;
        }
        &:hover {
          color: #fff;
          opacity: 1;
        }
        img {
          width: 24px;
          height: 24px;
          margin: 0 24px 4px;
        }
      }
    }
  }
  .adv-a {
    float: left;
    display: block;
    width: 316px;
    height: 170px;
    > img {
      width: 100% !important;
      height: 100% !important;
    }
  }
}
/*广告栏目*/

.purchase-f {
  margin-top: 25px;
  background-color: #f5f5f5;
  padding-bottom: 20px;
  .purchase {
    height: 58px;
    line-height: 58px;
    h2 {
      font-size: 22px;
      font-weight: 200;
      color: #333;
    }
  }
  .purch {
    text-align: center;
    background: #f5f5f5;
    height: 340px;
    .countdown {
      padding-top: 39px;
      height: 300px;
      width: 234px;
      background: #f1eded;
      border-top: 1px solid red;
      .countdown-head {
        padding: 15px 0 0;
        font-size: 21px;
        color: #ef3a3b;
      }
      .countdown-img {
        margin: 30px 0;
      }
      .countdown-foot {
        color: rgba(0, 0, 0, 0.54);
        font-size: 15px;
      }

      .countdown-main {
        width: 168px;
        margin: 28px auto 0;
        span {
          width: 46px;
          height: 46px;
          background: #605751;
          color: #fff;
          font-size: 24px;
          line-height: 46px;
          float: left;
        }
        i {
          width: 15px;
          float: left;
          height: 46px;
          line-height: 46px;
          color: #605751;
          font-size: 28px;
        }
      }
    }
    .rainbow {
      float: left;
      background: #f5f5f5;
      overflow: hidden;
      width: 992px;
      height: 339px;
      .donghua1(@DHname1) {
        @keyframes @DHname1 {
          0% {
            margin-left: 0;
          }
          45% {
            margin-left: 0;
          }
          50% {
            margin-left: -992px;
          }
          95% {
            margin-left: -992px;
          }
          100% {
            margin-left: 0;
          }
        }
      }
      .donghua1(myDongHua1);
      .animation(@animation-name,@animation-duration,@animation-timing-function) {
        animation: @arguments;
      }
      .rain {
        width: 1994px;
        float: left;
        height: 339px;
        .animation(myDongHua1,15s,infinite);
      }
      a {
        width: 234px;
        height: 339px;
        background: #fafafa;
        display: block;
        margin-left: 14px;
        img {
          padding-top: 39px;
          display: block;
          width: 160px;
          margin: 0 auto 22px;
        }
        .title {
          margin: 0 20px 3px;
          font-size: 14px;
          font-weight: 400;
          text-overflow: ellipsis;
          color: #212121;
          overflow: hidden;
          white-space: nowrap;
        }
        .desc {
          height: 18px;
          margin: 0 20px 12px;
          font-size: 12px;
          text-overflow: ellipsis;
          color: #b0b0b0;
          overflow: hidden;
          white-space: nowrap;
        }
      }
    }
  }
}
/*小米闪购*/

.home-flashsale {
  width: 100%;
  background: #f5f5f5 !important;
  clear: both;
  .home-box {
    background: #f5f5f5;
    clear: both;
    .home-box1 {
      padding-top: 22px;
      .home-box2 {
        margin-top: 20px;
        position: relative;
        > h2 {
          margin: 0;
          font-size: 22px;
          font-weight: 200;
          line-height: 58px;
          color: #333;
        }
        .home-box3 {
          > a {
            position: absolute;
            top: 0;
            right: 0;
            font-size: 16px;
            line-height: 58px;
            color: #424242;
            transition: all 0.4s;
            i {
              width: 12px;
              height: 12px;
              padding: 4px;
              margin-left: 8px;
              border-radius: 16px;
              font-size: 16px;
              font-weight: bold;
              line-height: 12px;
              background: #b0b0b0;
              color: #fff;
              vertical-align: 1px;
            }
            &:hover {
              color: orange;
              i {
                background: orange;
              }
            }
          }
          .home-appliances1 {
            position: absolute;
            top: 0;
            right: 0px;
            font-size: 16px;
            line-height: 30px;
            color: #424242;
            transition: all 0.4s;
            &:hover {
              color: orange;
              border-bottom: 2px solid orange;
            }
          }
          .home-appliances2 {
            position: absolute;
            top: 0;
            right: 100px;
            font-size: 16px;
            line-height: 30px;
            color: #424242;
            transition: all 0.4s;
            &:hover {
              color: orange;
              border-bottom: 2px solid orange;
            }
          }
        }
      }
    }
    .box-bd {
      height: 614px;
      .box-bd1 {
        a {
          display: block;
          -webkit-transition: all 0.2s linear; /*渐变效果*/
          transition: all 0.2s linear;
          &:hover {
            z-index: 2; /*设置在顶层显示*/
            -webkit-box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1); /*添加阴影*/
            box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
            -webkit-transform: translate3d(0, -2px, 0); /*向上浮动*/
            transform: translate3d(0, -2px, 0);
          }
        }
        div:nth-child(2) {
          margin-top: 14px;
        }
      }
      .box-bd2 {
        width: 234px;
        height: 260px;
        padding: 20px 0;
        margin: 0 0 14px 14px;
        background: #ffffff;
        -webkit-transition: all 0.2s linear; /*渐变效果*/
        transition: all 0.2s linear;
        img {
          display: block;
          margin: 0 auto 18px;
          width: 160px;
          height: 160px;
          text-align: center;
        }
        h3 {
          margin: 0 10px 2px;
          font-size: 14px;
          font-weight: 400;
          color: #333;
          text-align: center;
          text-overflow: ellipsis;
          white-space: nowrap;
          overflow: hidden;
        }
        .desc {
          text-align: center;
          text-overflow: ellipsis;
          white-space: nowrap;
          overflow: hidden;
          margin: 0 10px 10px;
          height: 18px;
          font-size: 12px;
          color: #b0b0b0;
        }
        &:hover {
          z-index: 2; /*设置在顶层显示*/
          -webkit-box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1); /*添加阴影*/
          box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
          -webkit-transform: translate3d(0, -2px, 0); /*向上浮动*/
          transform: translate3d(0, -2px, 0);
        }
      }
    }
  }
  .figure {
    margin: 0 0 14px 14px;
    height: 300px;
    .figure-a {
      width: 234px;
      height: 143px;
      margin-bottom: 10px;
      background: #fff;
      -webkit-transition: all 0.2s linear; /*渐变效果*/
      transition: all 0.2s linear;
      &:hover {
        z-index: 2; /*设置在顶层显示*/
        -webkit-box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1); /*添加阴影*/
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
        -webkit-transform: translate3d(0, -2px, 0); /*向上浮动*/
        transform: translate3d(0, -2px, 0);
      }
      h3 {
        overflow: visible;
        white-space: normal;
        text-align: left;
        display: block;
        color: #333;
        width: 94px;
        height: 63px;
        font-size: 14px;
        font-weight: 400;
        margin-top: 25px;
      }
      .figure-img {
        margin: 20px 20px 0 0;
        display: block;
        width: 80px;
        height: 80px;
      }
      p {
        display: block;
        font-size: 12px;
        color: orange;
        margin-left: 40px;
      }
    }
    .figure-b {
      width: 234px;
      height: 143px;
      background: #fff;
      color: #000 !important;
      position: relative;
      -webkit-transition: all 0.2s linear; /*渐变效果*/
      transition: all 0.2s linear;
      &:hover {
        z-index: 2; /*设置在顶层显示*/
        -webkit-box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1); /*添加阴影*/
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
        -webkit-transform: translate3d(0, -2px, 0); /*向上浮动*/
        transform: translate3d(0, -2px, 0);
      }
      .figure-more {
        position: absolute;
        right: 35px;
        top: 48px;
        width: 48px;
        height: 48px;
      }
      .figure-small {
        display: block;
        margin: 50px 110px 0 30px;
        font-size: 18px;
        color: #333;
        width: 94px;
        height: 45px;
        small {
          display: block;
          font-size: 12px;
          color: #757575;
        }
      }
      i {
        font-size: 48px;
        line-height: 48px;
        color: #ff6700;
      }
    }
  }
  .video-list {
    width: 1226px;
    height: 285px;
    display: flex;
    justify-content: space-between;
    padding-bottom: 20px;
    .video-item {
      width: 296px;
      height: 285px;
      margin-bottom: 14px;
      text-align: center;
      background: #fff;
      -webkit-transition: all 0.2s linear;
      transition: all 0.2s linear;
      .figure-img {
        position: relative;
        width: 296px;
        height: 180px;
        vertical-align: middle;
        margin: 0 0 28px;
        .play {
          position: absolute;
          left: 20px;
          bottom: 10px;
          width: 32px;
          height: 20px;
          border: 2px solid #fff;
          border-radius: 12px;
          background-color: #424242;
          background-color: rgba(0, 0, 0, 0.6);
          color: #fff;
          -webkit-transition: all 0.2s;
          transition: all 0.2s;
          overflow: hidden;
        }
      }
      .title {
        margin: 0 14px 6px;
        font-size: 14px;
        font-weight: 400;
        text-align: center;
        color: #333;
        white-space: nowrap;
        text-overflow: ellipsis;
        overflow: hidden;
      }
      .desc {
        height: 18px;
        margin: 0 14px;
        font-size: 12px;
        color: #b0b0b0;
        white-space: nowrap;
        text-overflow: ellipsis;
        overflow: hidden;
      }
      &:hover {
        z-index: 2; /*设置在顶层显示*/
        -webkit-box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1); /*添加阴影*/
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
        -webkit-transform: translate3d(0, -2px, 0); /*向上浮动*/
        transform: translate3d(0, -2px, 0);
      }
      &:hover .play {
        background: orange;
      }
    }
  }
}
.home-right {
  position: fixed;
  bottom: 40px;
  right: 0;
  a:last-of-type {
    margin-top: 14px;
    border-top: 1px solid #f5f5f5;
    // visibility: hidden;
  }
  a {
    position: relative;
    display: block;
    width: 82px;
    height: 90px;
    margin-top: -1px;
    border: 1px solid #f5f5f5;
    text-align: center;
    font-size: 14px;
    background: #fff;
    :hover {
      color: orange;
    }
    span {
      color: #757575;
      -webkit-transition: color 0.3s;
      transition: color 0.3s;
    }
    div {
      position: relative;
      width: 30px;
      height: 30px;
      margin: 0 auto 8px;
      padding-top: 18px;
      img {
        position: absolute;
        bottom: 0;
        left: 0;
        width: 30px;
        height: 30px;
      }
    }
  }
}

.list {
  width: 992px;
  float: left;
  text-align: center;
  background: #f3f3f3;
  margin: 0;
  h3 {
    color: #000;
    margin-bottom: 20px;
  }
}
.item {
  float: left;
  width: 234px;
  height: 260px;
  margin: 0 0 14px 14px;
  text-align: center;
  padding: 20px 0;
  background: #ffffff;

  -webkit-transition: all 0.2s linear;
  /*渐变效果*/
  transition: all 0.2s linear;
  .desc {
    color: #000;
    margin-bottom: 20px;
  }
}
.item:hover {
  z-index: 2;
  /*设置在顶层显示*/
  -webkit-box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
  /*添加阴影*/
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
  -webkit-transform: translate3d(0, -2px, 0);
  /*向上浮动*/
  transform: translate3d(0, -2px, 0);
}
.item-img {
  display: block;
  margin: 0 auto 18px;
  width: 160px;
  height: 160px;
  text-align: center;
}
